<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>代理商登录</title>
		<link rel="stylesheet" type="text/css" href="__ACSS__/reset.css"/>
		<link rel="stylesheet" type="text/css" href="__ACSS__/style.css"/>
		<script type="text/javascript" src="__JS__/jquery.js"></script>
	</head>
	<body class="admin-login-bgbox">
		<div class="container">
			<div class="admin-login">
				<div class="login-form">
					<div class="login-title"><img src="__AIMG__/icon-04.png" class="mr01"/>管理后台</div>
					<form action="{:U('AgentPublic/login')}" method="post" class="form-box">
						<p class="input-box"><img src="__AIMG__/icon-05.png" class="img-mr"/><input type="text" name="username" value="" placeholder="请输入用户名" class="login-username"/></p>
						<p class="input-box"><img src="__AIMG__/icon-06.png" class="img-mr"/><input type="password" name="password" value="" placeholder="请输入密码" class="login-pwd"/></p>

						<!-- <p class="input-box">
							<img src="__AIMG__/icon-07.png" class="img-mr"/>
							<input type="text" name="Verify" value="" placeholder="验证码" class="login-identyCode"/>
							img src="__AIMG__/icon-08.png" alt="看不清楚，点击更换" title="看不清楚，点击更换"/>
							<img src="{:U('AgentPublic/verify')}" onclick="this.src='{:U("AgentPublic/verify")}'" class="identyCode-img"/>
							
						</p> -->
						<p class="login-forgetPwd">忘记密码？<a href="#" class="click-find">点击找回</a></p>
						<p><input type="submit" value="登录" class="login-submit"/></p>
						<p style = "margin-top:20px;">
						<span style = "color:red;font-size:16px;" id = "error"></span>
						</p>
					</form>
					<script type="text/javascript">

							$('form').submit(function(){
								$.post($(this).attr("action"), $(this).serialize(),error,"json");
								function error(data){
									if(data.status != 0){
										location.href = "{:U('AgentIndex/index')}";
									}else{
										$("#error").html(data.info)
									}
								}
								return false
							})

					</script>
				</div>
			</div>
		</div>
	</body>
</html>
